OPC Studio User's Guide and Reference
FromBytes Method (StreamLoader<TValue>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IO Namespace > StreamLoader<TValue> Class : FromBytes Method
The byte array to load the value from.
Loads a value from an array of bytes.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Function FromBytes( _
   ByVal bytes() As Byte _
) As ValueResult(Of TValue)
'Usage
 
Dim instance As StreamLoader(Of TValue)
Dim bytes() As Byte
Dim value As ValueResult(Of TValue)
 
value = instance.FromBytes(bytes)
[NotNull()]
public ValueResult<TValue> FromBytes( 
   byte[] bytes
)
[NotNull()]
public:
ValueResult<TValue^>^ FromBytes( 
   array<byte>^ bytes
) 

Parameters

bytes
The byte array to load the value from.

Return Value

Returns value result with the value loaded.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also